package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.PaiH;
import com.net.tkc.pro.entity.UserIntegral;
import com.net.tkc.pro.impl.UserIntegralImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserIntegralService{
    @Resource
    UserIntegralImpl userIntegralImpl;

    public int addUserIntegral(UserIntegral UserIntegral) {
        return userIntegralImpl.addUserIntegral(UserIntegral);
    }

    public List<UserIntegral> getUserList(int userid) {
        return userIntegralImpl.getUserList(userid);
    }

    public int getSun(int userid) {
        return userIntegralImpl.getSun(userid);
    }
    public List<PaiH> getSunLIst() {
        return userIntegralImpl.getSunLIst();
    }
    public List<UserIntegral> getLIst(int Start, int Page) {
        return userIntegralImpl.getLIst(Start, Page);
    }
    public int upInt(int id,String mode,int fraction){
        return userIntegralImpl.upInt(id, mode, fraction);
    }
    public int delint(int id){
        return userIntegralImpl.delint(id);
    }
}
